﻿-var entity = ViewData["entity"] as Person
.field
  %label.required{for="lastname"} Фамилия
  %input#lastname.px215.big.basictext.required{name="lastname",value=HTMLHelper.EscapeQuotes(entity.LastName),maxlength="100"}
.field
  %label.required{for="name"} Имя
  %input#name.px215.big.basictext.required{name="name",value=HTMLHelper.EscapeQuotes(entity.Name),maxlength="100"} 
.field
  %label{for="patronymicname"} Отчество
  %input#patronymicname.px215.big.basictext{name="patronymicname",value=HTMLHelper.EscapeQuotes(entity.PatronymicName),maxlength="100"}
.field
  %label{for="passportserial"} Серия паспорта
  %input#passportserial.px215.digits{name="passportserial",value=entity.PassportSerial,maxlength="50"}
.field
  %label{for="passportnumber"} Номер паспорта
  %input#passportnumber.px215.digits{name="passportnumber",value=entity.PassportNumber,maxlength="50"}
.field
  %label{for="passportdate"} Дата выдачи паспорта
  %input#passportdate.px150.dateRU{name="passportdate",value=entity.PassportDate.ToDateString()}       
.field
  %label{for="passportdetails"} Кем выдан паспорт
  %textarea#passportdetails.px450.basictext{name="passportdetails",rows="3",maxlength="300"}=entity.PassportDetails
.field
  %label{for="comment"} Комментарии
  %textarea#comment.px450.basictext{name="comment",rows="3",maxlength="300"}=entity.Comment
.field
  %label{for="email"} Email
  %input#email.px200.email{name="email",value=entity.Email,maxlength="100"}
.field
  %label{for="phone"} Телефон
  %input#phone.px200{name="phone",value=entity.Phone,maxlength="16",minlength="16"}
  .details Формат ввода: +X(XXX)XXX-XX-XX
.field
  %label.radio{for="isactivated"}
    =HTMLHelper.Checkbox("isactivated","True","", entity.IsActivated)
    ="Активирован"
.field
  %label.radio{for="isarchive"}
    =HTMLHelper.Checkbox("isarchive","True","", entity.IsArchive)
    ="Архивный"    
.field
  %label.radio{for="isnotify"}
    =HTMLHelper.Checkbox("isnotify","True","", entity.IsNotify)
    ="Уведомить нотариуса о клиенте"
.field
  %label{for="notifycomment"}Текст уведомления
  %textarea#notifycomment.px415.basictext{name="notifycomment",rows="4",maxlength="500"}=entity.NotifyComment